home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
trueSpace 7.6
/
tS761B8Std.exe
/
{app}
/
Scripts
/
ScriptCommands
/
LWME.xml
< prev
next >
Wrap
Extensible Markup Language
|
2008-06-10
|
3KB
|
66 lines
<?xml version="1.0" encoding="utf-8" ?>
<SCRIPT Name="LWME" Type="command" Description="lwme cmd" GUID = "{44DE8C88-6C26-4032-9A0C-614A4386705F}">
<SCRIPT_CODE><![CDATA[
function Execute(ret)
{
var LWMEnode = '/LW Material Editor';
// create main Color object
encapsC = Node.Create('{649B82DC-EFDC-4BB3-A511-1AB075F63DFF}', LWMEnode);
// encapsC = Node.SafeRename(encapsC,'LWME Color');
encapsC = Node.Rename(encapsC,'LWME Color');
// first create Transparency node
encapsT = Node.Create('{649B82DC-EFDC-4BB3-A511-1AB075F63DFF}', LWMEnode);
encapsT = Node.Rename(encapsT,'LWME Transparency');
// first create Displacement node
encapsD = Node.Create('{649B82DC-EFDC-4BB3-A511-1AB075F63DFF}', LWMEnode);
encapsD = Node.Rename(encapsD,'LWME Displacement');
// first create Reflectance node
encapsR = Node.Create('{649B82DC-EFDC-4BB3-A511-1AB075F63DFF}', LWMEnode);
encapsR = Node.Rename(encapsR,'LWME Reflectance');
Material = Node.Create('LwME Package/LWMaterial', LWMEnode);
// encapsR = Node.Rename(encapsR,'LWMaterial');
// System.Trace(encapsC);
// System.Trace(encapsT);
// System.Trace(encapsD);
// System.Trace(encapsR);
// create subobjects
ColorShader = Node.Create('LwME Package/LWColorShader', encapsC);
TransShader = Node.Create('LwME Package/LWTransparencyShader', encapsT);
DisplShader = Node.Create('LwME Package/LWDisplacementShader', encapsD);
ReflShader = Node.Create('LwME Package/LWReflectionShader', encapsR);
// create subobjects
InputColor = Node.Create('LwME Package/LWInputColor', encapsC);
InputColor = Node.Rename(InputColor,'Plain color');
// connect subobjects
Node.ConnectTo(InputColor, 'ColorBrick', ColorShader,'Co');
// export connectors
Node.ExportConnector(ColorShader, 'Color_shader', '', 1, 1);
Node.ExportConnector(TransShader, 'Transparency_shader', '', 1, 1);
Node.ExportConnector(DisplShader, 'Displacement_shader', '', 1, 1);
Node.ExportConnector(ReflShader, 'Reflection_shader', '', 1, 1);
// export connectors
// Node.ExportConnector(encapsC, 'Color_shader', '', 1, 1);
// Node.ExportConnector(encapsT, 'Transparency_shader', '', 1, 1);
// Node.ExportConnector(encapsD, 'Displacement_shader', '', 1, 1);
// Node.ExportConnector(encapsR, 'Reflection_shader', '', 1, 1);
Node.ConnectTo(encapsC, 'Color_shader', Material,'ColorShader');
Node.ConnectTo(encapsT, 'Transparency_shader', Material,'TransparentShader');
Node.ConnectTo(encapsD, 'Displacement_shader', Material,'DisplacementShader');
Node.ConnectTo(encapsR, 'Reflection_shader', Material,'ReflectanceShader');
Node.ExportConnector(Material, 'LW Material', '', 1, 1);
}
]]></SCRIPT_CODE>
</SCRIPT>